SAS proc freq总结 您所在的位置:网站首页 sas 分组计数 SAS proc freq总结

SAS proc freq总结

2023-10-27 23:49| 来源: 网络整理| 查看: 265

1.proc freq

1.1、基本模式、一般用法:

proc freq data = example1 参数1; tables 变量 / 参数2; 可选1:weight count; run;

参数1: 1 nlevels 统计变量独立值个数 2 noprint 不打印结果 3 order=FREQ 按频数从大到小排列(PS:To order categories based on a particular FORMAT, you can use order = FORMATTED option)

变量: 可以单个变量x,可以双变量xy,或:x(y, z)...

参数2: 1 nocum 不返回累加信息 2 nopercent 不返回百分比信息 3 list 交叉分析时,添加list声明后,每种可能组合都会输出一条记录 4 norow nocol 交叉分析时,该声明分别默认不输出行、列百分比信息 5 missing 统计缺失值

可选1:WEIGHT statement is used when we already have the counts. It makes PROC FREQ use count data to produce frequency and crosstabulation tables

1.2、特殊用法 1.2.1 卡方检验

proc freq data = example1 noprint; tables y * x/chisq; output All out=temp_chi chisq; run;

作用:检验双类别变量之间的同质性或独立性;帮助判断模型中自变量的统计显著性,一般p



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有